package cn.lan.scau_hotel_service.service;

import cn.lan.scau_hotel_service.entity.Room;
import cn.lan.scau_hotel_service.entity.RoomType;

import java.util.List;

public interface RoomService {

    Room getRoomById(int id);

    boolean saveRoom(Room room);

    boolean deleteRoomById(int id);

    List<Room> findAll();

    int countByCanRentTrue();
    int countByIsRentTrue();
    int countByCanRentTrueAndIsRentFalse();

    int countByRoomTypeCanRentTrueAndIsRentFalse(RoomType roomType);

    List<Room> findByCanRentTrueAndIsRentFalse();

    List<Room> findByCanRentTrue();

    List<Room> getRoomsByRoomTypeAndCanRentTrueAndIsRentFalse(RoomType roomType);
}
